<?php
@include_once("./general.php");
$status=isset($_GET["status"])?$_GET["status"]:0;
$goodsId=isset($_GET["goodsId"])?$_GET["goodsId"]:0;
$userName=isset($_GET["userName"])?$_GET["userName"]:0;
$number=isset($_GET["number"])?$_GET["number"]:0;
if ($status=='update') {
    $sqlStr="UPDATE shopping_car set number = $number where userName='$userName' and goods_id='$goodsId'";
    change($sqlStr);
}elseif ($status=='delete') {
    $sqlStr="DELETE FROM shopping_car where userName='$userName' and goods_id='$goodsId'";
    change($sqlStr);
}

?>